---
title: Actionsheet | gluestack-ui | Installation, Usage, and API

description: The Actionsheet component presents a set of options to the user, overlaid on top of the app's content, allowing them to take quick actions without leaving the current page or view.

pageTitle: Actionsheet

pageDescription: The Actionsheet component presents a set of options to the user, overlaid on top of the app's content, allowing them to take quick actions without leaving the current page or view.

showHeader: true

tag: beta
---

import { Meta } from '@storybook/addon-docs';

<Meta title="ui/Components/Disclosure/Actionsheet" />

import {
  Actionsheet,
  ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
  ActionsheetIcon,
  ActionsheetScrollView,
  ActionsheetVirtualizedList,
  ActionsheetFlatList,
  ActionsheetSectionList,
  ActionsheetSectionHeaderText,
  Button,
  ButtonText,
} from './Actionsheet';
import {
  VStack,
  Input,
  InputIcon,
  InputSlot,
  InputField,
  FormControl,
  FormControlLabel,
  FormControlLabelText,
  FormControlHelper,
  FormControlHelperText,
  HStack,
  KeyboardAvoidingView,
  Platform,
} from './ActionsheetAvoidKeyboard';
import { LeadingIcon, IconRoot } from './ActionsheetAvoidKeyboard';
import { Image, Text, Box } from './ActionsheetAvoidKeyboard';
import { Icon, TrashIcon, ShareIcon } from './ActionsheetIcon';
import { PlayIcon, FavouriteIcon, CloseIcon } from './ActionsheetIcon';
import { transformedCode } from '../../../utils';
import {
  AppProvider,
  CodePreview,
  Table,
  TableContainer,
  InlineCode,
  AddIcon,
  InfoIcon,
  Alert,
} from '@gluestack/design-system';
import { config } from '@gluestack-ui/config';
import Wrapper from '../../Wrapper';

This is an illustration of a **Themed Actionsheet** component with default configuration.

<AppProvider config={config}>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `
function App(){
  const [showActionsheet, setShowActionsheet] = React.useState(false);
  const handleClose = () => setShowActionsheet(!showActionsheet);
    return (
      <Box>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose} zIndex={999}>
          <ActionsheetBackdrop />
          <ActionsheetContent h='$72' zIndex={999}>
            <ActionsheetDragIndicatorWrapper>
              <ActionsheetDragIndicator />
            </ActionsheetDragIndicatorWrapper>
            <ActionsheetItem onPress={handleClose}>
              <ActionsheetItemText>Delete</ActionsheetItemText>
            </ActionsheetItem>
            <ActionsheetItem onPress={handleClose}>
              <ActionsheetItemText>Share</ActionsheetItemText>
            </ActionsheetItem>
            <ActionsheetItem onPress={handleClose}>
              <ActionsheetItemText>Play</ActionsheetItemText>
            </ActionsheetItem>
            <ActionsheetItem onPress={handleClose}>
              <ActionsheetItemText>Favourite</ActionsheetItemText>
            </ActionsheetItem>
            <ActionsheetItem onPress={handleClose}>
              <ActionsheetItemText>Cancel</ActionsheetItemText>
            </ActionsheetItem>
          </ActionsheetContent>
        </Actionsheet>
      </Box>
  );
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Button,
        ButtonText,
        ButtonText,
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        Wrapper,
        Box,
      },
    }}
  />
</AppProvider>

<br />

## API Reference

### Import

To use this component in your project, include the following import statement in your file.

```bash
import { Actionsheet } from '@gluestack-ui/themed';
```

### Anatomy

The structure provided below can help you identify and understand a actionsheet component's various parts.

```jsx
export default () => (
  <Actionsheet>
    <ActionsheetBackdrop />
    <ActionsheetContent>
      <ActionsheetDragIndicatorWrapper>
        <ActionsheetDragIndicator />
      </ActionsheetDragIndicatorWrapper>
      <ActionsheetItem>
        <ActionsheetItemText />
      </ActionsheetItem>
    </ActionsheetContent>
  </Actionsheet>
);
```

### Component Props

This section provides a comprehensive reference list for the component props, detailing descriptions, properties, types, and default behavior for easy project integration.

#### Actionsheet

It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component.

<AppProvider>
  <TableContainer>
    <Table>
      <Table.THead>
        <Table.TR>
          <Table.TH>
            <Table.TText>Prop</Table.TText>
          </Table.TH>
          <Table.TH>
            <Table.TText>Type</Table.TText>
          </Table.TH>
          <Table.TH>
            <Table.TText>Default</Table.TText>
          </Table.TH>
          <Table.TH>
            <Table.TText>Description</Table.TText>
          </Table.TH>
        </Table.TR>
      </Table.THead>
      <Table.TBody>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>isOpen</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`If true, the Actionsheet will open. Useful for controllable state behavior.`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>onClose</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`() => any`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>
              {`Callback invoked when the Actionsheet is closed.`}
            </Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>onOpen</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`() => any`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>
              {`Callback invoked when the Actionsheet is opened.`}
            </Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>useRNModal</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>false</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`If true, renders react-native native modal.`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>defaultIsOpen</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`Specifies the default open state of the Actionsheet`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>initialFocusRef</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`React.RefObject<any>`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`The ref of element to receive focus when the Actionsheet opens.`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>finalFocusRef</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`React.RefObject<any>`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`The ref of element to receive focus when the Actionsheet closes`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>closeOnOverlayClick</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`If true, the Actionsheet will close when the overlay is clicked.`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>isKeyboardDismissable</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`If true, the keyboard can dismiss the Actionsheet`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>trapFocus</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>boolean</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`true`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`If true, creates a focus scope containing all elements within the Actionsheet content.`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>children</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>any</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>-</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`The content to display inside the Actionsheet`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>snapPoints</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`Array<number>`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`[50]`}</Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>
              {`The snap points for the Actionsheet The Actionsheet will snap to the point closest to its current position. The default value is 50% of the screen height. The value should be between 0 and 100. Currently, only one snap point is supported. We plan to support multiple snap points in the future.`}
            </Table.TText>
          </Table.TD>
        </Table.TR>
      </Table.TBody>
    </Table>
  </TableContainer>
</AppProvider>

#### ActionsheetBackdrop

It is React Native's [Pressable](https://reactnative.dev/docs/pressable) component, created using [@legendapp/motion's](https://legendapp.com/open-source/motion/) `createMotionAnimatedComponent` function to add animation to the component. You can use any declarative animation library you prefer.

#### ActionsheetContent

It inherits all the properties of [@legendapp/motion's](https://legendapp.com/open-source/motion/) [Motion.View](https://legendapp.com/open-source/motion/overview/) component. With this Actionsheet component, you have the flexibility to use any declarative animation library that suits your needs.

**Descendants Styling Props**
Props to style child components.

<AppProvider>
  <TableContainer>
    <Table>
      <Table.THead>
        <Table.TR>
          <Table.TH>
            <Table.TText>Sx Prop</Table.TText>
          </Table.TH>
          <Table.TH>
            <Table.TText>Description</Table.TText>
          </Table.TH>
        </Table.TR>
      </Table.THead>
      <Table.TBody>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>_sectionHeaderText</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`Prop to style ActionsheetSectionHeaderText Component`}</Table.TText>
          </Table.TD>
        </Table.TR>
      </Table.TBody>
    </Table>
  </TableContainer>
</AppProvider>

#### ActionsheetDragIndicatorWrapper

It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component.

#### ActionsheetDragIndicator

It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component.

#### ActionsheetItem

It inherits all the properties of React Native's [Pressable](https://reactnative.dev/docs/pressable) component.

**Descendants Styling Props**
Props to style child components.

<AppProvider>
  <TableContainer>
    <Table>
      <Table.THead>
        <Table.TR>
          <Table.TH>
            <Table.TText>Sx Prop</Table.TText>
          </Table.TH>
          <Table.TH>
            <Table.TText>Description</Table.TText>
          </Table.TH>
        </Table.TR>
      </Table.THead>
      <Table.TBody>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>_text</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`Prop to style ActionsheetItemText Component`}</Table.TText>
          </Table.TD>
        </Table.TR>
        <Table.TR>
          <Table.TD>
            <Table.TText>
              <InlineCode>_icon</InlineCode>
            </Table.TText>
          </Table.TD>
          <Table.TD>
            <Table.TText>{`Prop to style ActionsheetIcon Component`}</Table.TText>
          </Table.TD>
        </Table.TR>
      </Table.TBody>
    </Table>
  </TableContainer>
</AppProvider>

#### ActionsheetItemText

It inherits all the properties of React Native's [Text](https://reactnative.dev/docs/text) component.

#### ActionsheetIcon

It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component.

#### ActionsheetScrollView

It inherits all the properties of React Native's [ScrollView](https://reactnative.dev/docs/scrollview) component.

#### ActionsheetVirtualizedList

It inherits all the properties of React Native's [VirtualizedList](https://reactnative.dev/docs/virtualizedlist) component.

#### ActionsheetFlatList

It inherits all the properties of React Native's [FlatList](https://reactnative.dev/docs/flatlist) component.

#### ActionsheetSectionList

It inherits all the properties of React Native's [SectionList](https://reactnative.dev/docs/sectionlist) component.

#### ActionsheetSectionHeaderText

It inherits all the properties of React Native's [Text](https://reactnative.dev/docs/text) component.

> Note: While our Actionsheet component supports both ActionsheetScrollView and ActionsheetVirtualizedList, we recommend using VirtualizedList for better performance on large lists of items. The ScrollView option may cause performance issues on lists with many items.

### Features

- Actionsheet has aria-modal set to true.
- Actionsheet has role set to dialog.
- When the Actionsheet opens, focus is trapped within it.
- Pressing Esc closes the Actionsheet
- Clicking on the overlay closes the Actionsheet
- Scrolling is blocked on the elements behind the Actionsheet

### Accessibility

We have outlined the various features that ensure the Actionsheet component is accessible to all users, including those with disabilities. These features help ensure that your application is inclusive and meets accessibility standards.

#### Keyboard

- `Tab + Enter`: Triggers the actionsheet action.

### Screen Reader

- VoiceOver: When the actionsheet is focused, the screen reader will announce the button group .

## Themed

The themed version of the component is a pre-styled version of the component, which allows you to quickly integrate the component into your project. The component's design and functionality are fully defined, allowing you to focus on the more important aspects of your project. To know more about Themed Library please visit this [link](https://gluestack.io/ui/docs/core-concepts/themed-library).

## Examples

The Examples section provides visual representations of the different variants of the component, allowing you to quickly and easily determine which one best fits your needs. Simply copy the code and integrate it into your project.

### Keyboard handling

Demonstrates a common UI pattern known as keyboard handling or keyboard scrolling, in which an input field is automatically scrolled into view when the user taps on it and the keyboard appears. This improves usability and ensures that the input field is always visible and accessible, even when the keyboard is blocking part of the screen.

**Without SnapPoints**

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `
        function App(){
          const [showActionsheet, setShowActionsheet] = React.useState(false);
          const handleClose = () => setShowActionsheet(!showActionsheet);
            return (
            <>
                <Button onPress={handleClose}>
                  <ButtonText>Open</ButtonText>
                </Button>
          <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
         <Actionsheet
          isOpen={showActionsheet}
          onClose={handleClose}
        >
          <ActionsheetBackdrop />
          <ActionsheetContent maxHeight="75%">
            <ActionsheetDragIndicatorWrapper>
              <ActionsheetDragIndicator />
            </ActionsheetDragIndicatorWrapper>
            <VStack w="$full" p={20}>
              <HStack justifyContent="center" alignItems="center" space="md">
                <Box
                  w={50}
                  h="$full"
                  px="$2"
                  borderWidth={1}
                  borderStyle="solid"
                  borderColor="$borderLight300"
                  rounded="$sm"
                >
                  <Image
                    source={{ uri: 'https://i.imgur.com/UwTLr26.png' }}
                    flex={1}
                    resizeMode="contain"
                  />
                </Box>
                <VStack flex={1}>
                  <Text fontWeight="$bold">Mastercard</Text>
                  <Text>Card ending in 2345</Text>
                </VStack>
              </HStack>
              <FormControl mt={36}>
                <FormControlLabel>
                  <FormControlLabelText>
                    Confirm security code
                  </FormControlLabelText>
                </FormControlLabel>
                <Input w="$full">
                  <InputSlot>
                   <InputIcon as={LeadingIcon} ml="$2" />
                  </InputSlot>
                  <InputField placeholder="CVC/CVV" />
                </Input>
                <Button onPress={handleClose} mt={20}>
                  <ButtonText>Pay $1000</ButtonText>
                </Button>
              </FormControl>
            </VStack>
          </ActionsheetContent>
        </Actionsheet>
    </KeyboardAvoidingView>
 </>
          );
        }
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Wrapper,
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        Button,
        ButtonText,
        ButtonText,
        VStack,
        Input,
        InputIcon,
        InputSlot,
        InputField,
        FormControl,
        FormControlLabel,
        FormControlLabelText,
        HStack,
        Image,
        Text,
        Box,
        Icon,
        LeadingIcon,
        IconRoot,
        KeyboardAvoidingView,
        Platform,
      },
      argsType: {},
    }}
  />
</AppProvider>

**With SnapPoints**

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `
        function App(){
          const [showActionsheet, setShowActionsheet] = React.useState(false);
          const handleClose = () => setShowActionsheet(!showActionsheet);
            return (
      <>
        <Button onPress={handleClose}>
            <ButtonText>Open</ButtonText>
        </Button>
         <Actionsheet
          isOpen={showActionsheet}
          onClose={handleClose}
          snapPoints={[50]}
        >
        <KeyboardAvoidingView
        behavior="position"
        // eslint-disable-next-line react-native/no-inline-styles
        style={{
          position: 'relative',
          flex: 1,
          justifyContent: 'flex-end',
        }}
      >
          <ActionsheetBackdrop />
          <ActionsheetContent maxHeight="75%">
            <ActionsheetDragIndicatorWrapper>
              <ActionsheetDragIndicator />
            </ActionsheetDragIndicatorWrapper>
            <VStack w="$full" p={20}>
              <HStack justifyContent="center" alignItems="center" space="md">
                <Box
                  w={50}
                  h="$full"
                  px="$2"
                  borderWidth={1}
                  borderStyle="solid"
                  borderColor="$borderLight300"
                  rounded="$sm"
                >
                  <Image
                    source={{ uri: 'https://i.imgur.com/UwTLr26.png' }}
                    flex={1}
                    resizeMode="contain"
                  />
                </Box>
                <VStack flex={1}>
                  <Text fontWeight="$bold">Mastercard</Text>
                  <Text>Card ending in 2345</Text>
                </VStack>
              </HStack>
              <FormControl mt={36}>
                <FormControlLabel>
                  <FormControlLabelText>
                    Confirm security code
                  </FormControlLabelText>
                </FormControlLabel>
                <Input w="$full">
                  <InputSlot>
                   <InputIcon as={LeadingIcon} ml="$2" />
                  </InputSlot>
                  <InputField placeholder="CVC/CVV" />
                </Input>
                <Button onPress={handleClose} mt={20}>
                  <ButtonText>Pay $1000</ButtonText>
                </Button>
              </FormControl>
            </VStack>
          </ActionsheetContent>
    </KeyboardAvoidingView>
</Actionsheet>
 </>
);}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Wrapper,
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        Button,
        ButtonText,
        ButtonText,
        VStack,
        Input,
        InputIcon,
        InputSlot,
        InputField,
        FormControl,
        FormControlLabel,
        FormControlLabelText,
        HStack,
        Image,
        Text,
        Box,
        Icon,
        LeadingIcon,
        IconRoot,
        KeyboardAvoidingView,
        Platform,
      },
      argsType: {},
    }}
  />
</AppProvider>

### Icons

The Actionsheet with Icons is a variation of the Actionsheet component that displays icons next to each option. It's commonly used in apps for a more visual representation of options and easier navigation.

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `
        function App(){
          const [showActionsheet, setShowActionsheet] = React.useState(false);
          const handleClose = () => setShowActionsheet(!showActionsheet);
            return (
            <>
                <Button onPress={handleClose}>
                  <ButtonText>Open</ButtonText>
                </Button>
                <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
                <ActionsheetBackdrop />
                  <ActionsheetContent>
                    <ActionsheetDragIndicatorWrapper>
                      <ActionsheetDragIndicator />
                    </ActionsheetDragIndicatorWrapper>
                    <ActionsheetItem onPress={handleClose}>
                      <ActionsheetIcon>
                        <Icon as={TrashIcon} />
                      </ActionsheetIcon>
                      <ActionsheetItemText>Delete</ActionsheetItemText>
                    </ActionsheetItem>
                    <ActionsheetItem onPress={handleClose}>
                      <ActionsheetIcon>
                        <Icon as={ShareIcon} />
                      </ActionsheetIcon>
                      <ActionsheetItemText>Share</ActionsheetItemText>
                    </ActionsheetItem>
                    <ActionsheetItem onPress={handleClose}>
                      <ActionsheetIcon>
                        <Icon as={PlayIcon} />
                      </ActionsheetIcon>
                      <ActionsheetItemText>Play</ActionsheetItemText>
                    </ActionsheetItem>
                    <ActionsheetItem onPress={handleClose}>
                      <ActionsheetIcon>
                        <Icon as={FavouriteIcon} />
                      </ActionsheetIcon>
                      <ActionsheetItemText>Favourite</ActionsheetItemText>
                    </ActionsheetItem>
                    <ActionsheetItem onPress={handleClose}>
                      <ActionsheetIcon>
                        <Icon as={CloseIcon} />
                      </ActionsheetIcon>
                      <ActionsheetItemText>Cancel</ActionsheetItemText>
                    </ActionsheetItem>
                  </ActionsheetContent>
              </Actionsheet>
            </>
          );
        }
  `,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        ActionsheetIcon,
        Icon,
        Wrapper,
        TrashIcon,
        ShareIcon,
        PlayIcon,
        FavouriteIcon,
        CloseIcon,
        Button,
        ButtonText,
      },
      argsType: {},
    }}
  />
</AppProvider>

### VirtualizedList

The Actionsheet with Virtualized List includes a virtualized list for better performance when displaying a large number of options. It's commonly used in apps with long lists of options for an improved user experience.

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const data = React.useMemo(() => Array(50).fill(0).map((_, index) => 'Item' + index),[]);
    const getItem = (_data, index) => ({
      id: Math.random().toString(12).substring(0),
      title: _data[index],
    });
    const getItemCount = (_data) => _data.length;
    const Item = React.useCallback(
      ({ title }) => (
        <ActionsheetItem onPress={handleClose}>
          <ActionsheetItemText>{title}</ActionsheetItemText>
        </ActionsheetItem>
      ),
      [handleClose]
    );
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetVirtualizedList
            h="$56"
            data={data}
            initialNumToRender={5}
            renderItem={({ item }) => <Item title={item.title} />}
            keyExtractor={(item) => item.id}
            getItemCount={getItemCount}
            getItem={getItem}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        ActionsheetVirtualizedList,
        Button,
        ButtonText,
        Wrapper,
      },
      argsType: {},
    }}
  />
</AppProvider>

### FlatList

The Actionsheet with Flat List is a variation of the Actionsheet component that displays a flat list of options. It's commonly used in apps for a simple and straightforward display of options to the user.

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        id: 'bd7acbea-c1b1-46c2-aed5-3ad53abb28ba',
        title: 'First Item'
      },
      {
        id: '3ac68afc-c605-48d3-a4f8-fbd91aa97f63',
        title: 'Second Item'
      },
      {
        id: '58694a0f-3da1-471f-bd96-145571e29d72',
        title: 'Third Item'
      },
    ];
    const Item = React.useCallback(
      ({ title }) => (
        <ActionsheetItem onPress={handleClose}>
          <ActionsheetItemText>{title}</ActionsheetItemText>
        </ActionsheetItem>
      ),
      [handleClose]
    );
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetFlatList
            data={DATA}
            renderItem={({ item }) => <Item title={item.title} />}
            keyExtractor={(item) => item.id}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        ActionsheetFlatList,
        Button,
        ButtonText,
        Wrapper,
      },
      argsType: {},
    }}
  />
</AppProvider>

### SectionList

The Actionsheet with SectionList is a variation of the Actionsheet component that displays a sectioned list of options. It's commonly used in apps to organize options into different categories or sections for better readability and navigation.

Default styling of the component can be found in the `components/actionsheet` file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/main/packages/themed/src/components/Actionsheet) of the styled `Actionsheet` component.

<AppProvider>
  <CodePreview
    showComponentRenderer={true}
    showArgsController={false}
    metaData={{
      code: `function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        title: 'Main dishes',
        data: ['Pizza', 'Burger', 'Risotto'],
      },
      {
        title: 'Sides',
        data: ['French Fries', 'Onion Rings', 'Fried Shrimps'],
      },
      {
        title: 'Drinks',
        data: ['Water', 'Coke', 'Beer'],
      },
      {
        title: 'Desserts',
        data: ['Cheese Cake', 'Ice Cream'],
      },
    ];
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
           <ActionsheetSectionList
            h="$56"
            sections={DATA}
            keyExtractor={(item, index) => item + index}
            renderItem={({ item }) => (
              <ActionsheetItem onPress={handleClose}>
                <ActionsheetItemText>{item}</ActionsheetItemText>
              </ActionsheetItem>
            )}
            renderSectionHeader={({ section: { title, data } }) => (
              <ActionsheetSectionHeaderText>
                {title}  ({data.length})
              </ActionsheetSectionHeaderText>
            )}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
      scope: {
        Actionsheet,
        ActionsheetBackdrop,
        ActionsheetContent,
        ActionsheetDragIndicator,
        ActionsheetDragIndicatorWrapper,
        ActionsheetItem,
        ActionsheetItemText,
        ActionsheetSectionList,
        ActionsheetSectionHeaderText,
        Button,
        ButtonText,
        Wrapper,
      },
      argsType: {},
    }}
  />
</AppProvider>

## Unstyled

All the components in `gluestack-ui` are unstyled by default. To customize your UI using the extendedTheme, please refer to this [link](https://gluestack.io/ui/docs/theme-configuration/customizing-theme/eject-library). The import names of components serve as keys to customize each component.

<!--

### Examples

The Examples section provides visual representations of the different variants of the component, allowing you to quickly and easily determine which one best fits your needs. Simply copy the code and integrate it into your project.

#### Themed

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
      function App(){
        const [showActionsheet, setShowActionsheet] = React.useState(false);
        const handleClose = () => setShowActionsheet(!showActionsheet);
          return (
            <Box>
              <Button onPress={handleClose}>
                <ButtonText>Open</ButtonText>
              </Button>
              <Actionsheet isOpen={showActionsheet} onClose={handleClose} zIndex={999}>
                <ActionsheetBackdrop />
                <ActionsheetContent zIndex={999}>
                  <ActionsheetDragIndicatorWrapper>
                    <ActionsheetDragIndicator />
                  </ActionsheetDragIndicatorWrapper>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>Edit Profile</ActionsheetItemText>
                  </ActionsheetItem>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>View Followers</ActionsheetItemText>
                  </ActionsheetItem>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>Add a Post</ActionsheetItemText>
                  </ActionsheetItem>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>Delete Account </ActionsheetItemText>
                  </ActionsheetItem>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>Settings</ActionsheetItemText>
                  </ActionsheetItem>
                  <ActionsheetItem onPress={handleClose}>
                    <ActionsheetItemText>Sign Out</ActionsheetItemText>
                  </ActionsheetItem>
                </ActionsheetContent>
              </Actionsheet>
            </Box>
          );
        }
      `,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Box,
      Actionsheet,
      ActionsheetBackdrop,
      ActionsheetContent,
      ActionsheetDragIndicator,
      ActionsheetDragIndicatorWrapper,
      ActionsheetItem,
      ActionsheetItemText,
      Wrapper
    },
    argsType: {},
  }}
/>
</AppProvider>


#### VirtualizedList

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const data = React.useMemo(() => Array(5).fill(0).map((_, index) => 'Item' + index),[]);
    const getItem = (_data, index) => ({
      id: Math.random().toString(12).substring(0),
      title: _data[index],
    });
    const getItemCount = (_data) => _data.length;
    const Item = React.useCallback(
      ({ title }) => (
        <ActionsheetItem onPress={handleClose}>
          <ActionsheetItemText>{title}</ActionsheetItemText>
        </ActionsheetItem>
      ),
      [handleClose]
    );
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetVirtualizedList
            data={data}
            renderItem={({ item }) => <Item title={item.title} />}
            keyExtractor={(item) => item.id}
            getItemCount={getItemCount}
            getItem={getItem}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText
    },
    argsType: {},
  }}
/>
</AppProvider>


#### Keyboard handling

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
        function App(){
          const [showActionsheet, setShowActionsheet] = React.useState(false);
          const handleClose = () => setShowActionsheet(!showActionsheet);
            return (
            <>
                <Button onPress={handleClose}>
                  <ButtonText>Open</ButtonText>
                </Button>
         <Actionsheet
          isOpen={showActionsheet}
          onClose={handleClose}>
          <ActionsheetBackdrop />
          <ActionsheetContent maxHeight="75%">
            <ActionsheetDragIndicatorWrapper>
              <ActionsheetDragIndicator />
            </ActionsheetDragIndicatorWrapper>
            <VStack w="$full" p={20}>
              <HStack justifyContent="center" alignItems="center" space="md">
                <Box
                  w={50}
                  h="$full"
                  px="$2"
                  borderWidth={1}
                  borderStyle="solid"
                  borderColor="$borderLight300"
                  rounded="$sm"
                >
                  <Image
                    source={{ uri: 'https://i.imgur.com/UwTLr26.png' }}
                    flex={1}
                    resizeMode="contain"
                  />
                </Box>
                <VStack flex={1}>
                  <Text fontWeight="$bold">Mastercard</Text>
                  <Text>Card ending in 2345</Text>
                </VStack>
              </HStack>
              <FormControl mt={36}>
                <FormControlLabel>
                  <FormControlLabelText>
                    Confirm security code
                  </FormControlLabelText>
                </FormControlLabel>
                <Input mt={5}>
                  <InputField placeholder="CVC/CVV"/>
                </Input>
                <Button onPress={handleClose} mt={20}>
                  <ButtonText>Pay $1000</ButtonText>
                </Button>
              </FormControl>
            </VStack>
          </ActionsheetContent>
        </Actionsheet>
            </>
          );
        }
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
        function App(){
          const [showActionsheet, setShowActionsheet] = React.useState(false);
          const handleClose = () => setShowActionsheet(!showActionsheet);
            return (
            <>
                <Button onPress={handleClose}>
                  <ButtonText>Open</ButtonText>
                </Button>
         <Actionsheet
          isOpen={showActionsheet}
          onClose={handleClose}
        >
          <ActionsheetBackdrop />
          <ActionsheetContent maxHeight="75%" bg="black">
            <ActionsheetDragIndicatorWrapper>
              <ActionsheetDragIndicator />
            </ActionsheetDragIndicatorWrapper>
            <VStack w="$full" p={20} >
              <HStack justifyContent="center" alignItems="center" space="md">
                <Box
                  w={50}
                  h="$full"
                  px="$2"
                  borderWidth={1}
                  borderStyle="solid"
                  borderColor="$borderLight300"
                  rounded="$sm"
                >
                  <Image
                    source={{ uri: 'https://i.imgur.com/UwTLr26.png' }}
                    flex={1}
                    resizeMode="contain"
                  />
                </Box>
                <VStack flex={1} >
                  <Text fontWeight="$bold" color="white">Mastercard</Text>
                  <Text color="white">Card ending in 2345</Text>
                </VStack>
              </HStack>
              <FormControl mt={36}>
                <FormControlLabel>
                  <FormControlLabelText>
                    Confirm security code
                  </FormControlLabelText>
                </FormControlLabel>
                <Input mt={5}>
                  <InputField placeholder="CVC/CVV"/>
                </Input>
                <Button onPress={handleClose} mt={20}>
                  <ButtonText>Pay $1000</ButtonText>
                </Button>
              </FormControl>
            </VStack>
          </ActionsheetContent>
        </Actionsheet>
            </>
          );
        }
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>

#### FlatList

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
       function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        id: 'bd7acbea-c1b1-46c2-aed5-3ad53abb28ba',
        title: 'Pizza'
      },
      {
        id: '3ac68afc-c605-48d3-a4f8-fbd91aa97f63',
        title: 'Burger'
      },
      {
        id: '58694a0f-3da1-471f-bd96-145571e29d73',
        title: 'Risotto'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d74',
        title: 'French Fries'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d75',
        title: 'Onion Rings'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d76',
        title: 'Fried Shrimps'
      },
    ];
    const Item = React.useCallback(
      ({ title }) => (
        <ActionsheetItem onPress={handleClose}>
          <ActionsheetItemText>{title}</ActionsheetItemText>
        </ActionsheetItem>
      ),
      [handleClose]
    );
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetFlatList
            data={DATA}
            renderItem={({ item }) => <Item title={item.title} />}
            keyExtractor={(item) => item.id}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
       function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        id: 'bd7acbea-c1b1-46c2-aed5-3ad53abb28ba',
        title: 'Pizza'
      },
      {
        id: '3ac68afc-c605-48d3-a4f8-fbd91aa97f63',
        title: 'Burger'
      },
      {
        id: '58694a0f-3da1-471f-bd96-145571e29d73',
        title: 'Risotto'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d74',
        title: 'French Fries'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d75',
        title: 'Onion Rings'
      },
       {
        id: '58694a0f-3da1-471f-bd96-145571e29d76',
        title: 'Fried Shrimps'
      },
    ];
    const Item = React.useCallback(
      ({ title }) => (
        <ActionsheetItem onPress={handleClose}>
          <ActionsheetItemText color="white">{title}</ActionsheetItemText>
        </ActionsheetItem>
      ),
      [handleClose]
    );
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent bg="black">
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
          <ActionsheetFlatList
            data={DATA}
            renderItem={({ item }) => <Item title={item.title}  />}
            keyExtractor={(item) => item.id}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>

#### SectionList
<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
    function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        title: 'Main dishes',
        data: ['Pizza', 'Burger', 'Risotto'],
      },
      {
        title: 'Sides',
        data: ['French Fries', 'Onion Rings', 'Fried Shrimps'],
      },
    ];
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent>
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
           <ActionsheetSectionList
            sections={DATA}
            keyExtractor={(item, index) => item + index}
            renderItem={({ item }) => (
              <ActionsheetItem onPress={handleClose}>
                <ActionsheetItemText>{item}</ActionsheetItemText>
              </ActionsheetItem>
            )}
            renderSectionHeader={({ section: { title, data } }) => (
              <ActionsheetSectionHeaderText>
                {title}  ({data.length})
              </ActionsheetSectionHeaderText>
            )}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>

<AppProvider>
<CodePreview
  showComponentRenderer={true}
  showArgsController={false}
  metaData={{
    code: `
    function App(){
    const [showActionsheet, setShowActionsheet] = React.useState(false);
    const handleClose = () => setShowActionsheet(!showActionsheet);
    const DATA = [
      {
        title: 'Main dishes',
        data: ['Pizza', 'Burger', 'Risotto'],
      },
      {
        title: 'Sides',
        data: ['French Fries', 'Onion Rings', 'Fried Shrimps'],
      },
    ];
    return (
    <>
        <Button onPress={handleClose}>
          <ButtonText>Open</ButtonText>
        </Button>
        <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
        <ActionsheetBackdrop />
        <ActionsheetContent bg="black">
          <ActionsheetDragIndicatorWrapper>
            <ActionsheetDragIndicator />
          </ActionsheetDragIndicatorWrapper>
           <ActionsheetSectionList
            sections={DATA}
            keyExtractor={(item, index) => item + index}
            renderItem={({ item }) => (
              <ActionsheetItem onPress={handleClose}>
                <ActionsheetItemText color="white">{item}</ActionsheetItemText>
              </ActionsheetItem>
            )}
            renderSectionHeader={({ section: { title, data } }) => (
              <ActionsheetSectionHeaderText  bg="black" >
                {title}  ({data.length})
              </ActionsheetSectionHeaderText>
            )}
          />
        </ActionsheetContent>
      </Actionsheet>
    </>
);
}
`,
      transformCode: (code) => {
        return transformedCode(code, 'function', 'App');
      },
    scope: {
      Button, ButtonText,
      Actionsheet,
        ActionsheetBackdrop,
  ActionsheetContent,
  ActionsheetDragIndicator,
  ActionsheetDragIndicatorWrapper,
  ActionsheetItem,
  ActionsheetItemText,
      VStack,
      HStack,
      Icon,
      Box,
      FormControl,
      Input,
      AddIcon,
      Image,
      Text,
    },
    argsType: {},
  }}
/>
</AppProvider>


### Customizing the Actionsheet

We have a function called `createActionsheet` which can be used to create a custom actionsheet component. This function takes in a configuration object which contains the styled components that you want to use for the Actionsheet You can refer [gluestack.io/style](/style) for more information on how to use styled components.

You can read more on how to animate components [here](/ui/docs/advanced/animations).

#### Usage

Default styling of all these components can be found in the `components/core/actionsheet` file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/main/packages/themed/src/components/Actionsheet) of the styled `Actionsheet` components.

```jsx
// import the styles
import {
  Root,
  Content,
  Item,
  ItemText,
  DragIndicator,
  IndicatorWrapper,
  Backdrop,
} from '../components/core/actionsheet/styled-components';

// import the createActionsheet function
import { createActionsheet } from '@gluestack-ui/actionsheet';

// Understanding the API
const Actionsheet = createActionsheet({
  Root,
  Content,
  Item,
  ItemText,
  DragIndicator,
  IndicatorWrapper,
  Backdrop,
});

// Using the actionsheet component
export default () => (
  <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
    <ActionsheetBackdrop />
    <ActionsheetContent>
      <ActionsheetDragIndicatorWrapper>
        <ActionsheetDragIndicator />
      </ActionsheetDragIndicatorWrapper>
      <ActionsheetItem onPress={handleClose}>
        <ActionsheetItemText>Community</ActionsheetItemText>
      </ActionsheetItem>
    </ActionsheetContent>
  </Actionsheet>
);
```

-->

## Spec Doc

Explore the comprehensive details of the Actionsheet in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey.

<iframe
  style={{
    borderRadius: '8px',
    border: ' 1px solid rgba(0, 0, 0, 0.1)',
    aspectRatio: 736 / 585,
  }}
  src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2FNcXOxqKbdnGsLQNex3H76u%2F%25C2%25A0%25F0%259F%2593%259Agluestack-UI-handbook%3Ftype%3Ddesign%26node-id%3D6203-27912%26t%3DzQi1VCxZQbqoZ7AP-1%26scaling%3Dscale-down%26page-id%3D6203%253A25990%26starting-point-node-id%3D6203%253A27912%26mode%3Ddesign"
  allowFullScreen
/>
